Designing Hexagonal Architecture with Java by Davi Vieira

Designing Hexagonal Architecture with Java by Davi Vieira

Author:Davi Vieira
Language: eng
Format: epub
Publisher: Packt Publishing Limited
Published: 2023-09-27T00:00:00+00:00


In this chapter, on top of the Domain hexagon, we built the Application hexagon with use cases and ports. For use cases, we heavily relied on a behavior-driven development tool called Cucumber. With Cucumber, we can express use cases supported by the system not only in code terms but also in written text.

We started by creating Cucumber feature files containing the use case written descriptions, and then we used them as a reference to create use case interfaces. These interfaces were then implemented by input ports that provided a concrete way to achieve the use case goals. Finally, we built use case tests, based again on the written description provided by Cucumber.

By implementing and testing the Application hexagon in this way, we leveraged the special capabilities of Cucumber to express the system’s behavior in a declarative and straightforward form, and we used these same capabilities to implement and test the entire Application hexagon.

On top of the Application hexagon and the features it provides, we need to decide how such features will be exposed. Also, some of these require access to external data sources. We’ll address all these concerns by developing the Framework hexagon in the next chapter.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Developing Robust Date and Time Oriented Applications in Oracle Cloud by Michal Kvet(6819)
Practical Guide to Azure Cognitive Services by Chris Seferlis & Christopher Nellis & Andy Roberts(5947)
Unity Artificial Intelligence Programming - Fifth Edition by Dr. Davide Aversa(5546)
Serverless ETL and Analytics with AWS Glue by Vishal Pathak Subramanya Vajiraya Noritaka Sekiyama Tomohiro Tanaka Albert Quiroga Ishan Gaur(4697)
Open Source Projects - Beyond Code by John Mertic(3771)
The AI Product Manager's Handbook by Irene Bratsis(3744)
Graph Data Modeling in Python by Gary Hutson and Matt Jackson(3739)
Cloud Auditing Best Practices by Shinesa Cambric & Michael Ratemo(3363)
Aligning Security Operations with the MITRE ATT&CK Framework by Rebecca Blair(3337)
Graph Data Processing with Cypher by Anthapu Ravindranatha;(1537)
Data Literacy in Practice - A complete guide to data literacy and making smarter decisions with data through intelligent actions (2022) by Packt(1516)
Serverless Machine Learning with Amazon Redshift ML: Create, train, and deploy machine learning models using familiar SQL commands by Debu Panda Phil Bates Bhanu Pittampally Sumeet Joshi(1418)
Network Automation with Go by Nicolas Leiva & Michael Kashin(1367)
Data Literacy in Practice by Angelika Klidas Kevin Hanegan(1305)
Applied Machine Learning and High-Performance Computing on AWS by Mani Khanuja | Farooq Sabir | Shreyas Subramanian | Trenton Potgieter(1303)
Graph Data Processing with Cypher by Ravindranatha Anthapu(1292)
Unreal Engine 5 Game Development with C++ Scripting by Zhenyu George Li(1168)
Implementing Multifactor Authentication: Protect your applications from cyberattacks with the help of MFA by Marco Fanti(1163)
Fuzzing Against the Machine: Automate vulnerability research with emulated IoT devices on QEMU by Antonio Nappa Eduardo Blazquez(1157)
The AI Product Manager's Handbook: Develop a product that takes advantage of machine learning to solve AI problems by Irene Bratsis(1016)